'use strict';
module.exports = app => {
    const { INTEGER, STRING, TEXT } = app.Sequelize;
    const Banner = app.model.define(
      'Banner',
          {
              id: {type: INTEGER, primaryKey: true, autoIncrement: true},
              image: STRING,
              url: STRING,
              status: INTEGER,
              detail: TEXT
          },
          {
              tableName: 'banner',
              timestamps: true, // 启用时间戳(createdAt, updatedAt)
          }
    );
    return Banner;
};
